package ruifight.member.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MemberInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MemberInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMemberInfoIsNull() {
            addCriterion("memberInfo is null");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIsNotNull() {
            addCriterion("memberInfo is not null");
            return (Criteria) this;
        }

        public Criteria andMemberInfoEqualTo(Long value) {
            addCriterion("memberInfo =", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoNotEqualTo(Long value) {
            addCriterion("memberInfo <>", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoGreaterThan(Long value) {
            addCriterion("memberInfo >", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoGreaterThanOrEqualTo(Long value) {
            addCriterion("memberInfo >=", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoLessThan(Long value) {
            addCriterion("memberInfo <", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoLessThanOrEqualTo(Long value) {
            addCriterion("memberInfo <=", value, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoIn(List<Long> values) {
            addCriterion("memberInfo in", values, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoNotIn(List<Long> values) {
            addCriterion("memberInfo not in", values, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoBetween(Long value1, Long value2) {
            addCriterion("memberInfo between", value1, value2, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andMemberInfoNotBetween(Long value1, Long value2) {
            addCriterion("memberInfo not between", value1, value2, "memberInfo");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNull() {
            addCriterion("userInfoId is null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNotNull() {
            addCriterion("userInfoId is not null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdEqualTo(Long value) {
            addCriterion("userInfoId =", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotEqualTo(Long value) {
            addCriterion("userInfoId <>", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThan(Long value) {
            addCriterion("userInfoId >", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("userInfoId >=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThan(Long value) {
            addCriterion("userInfoId <", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThanOrEqualTo(Long value) {
            addCriterion("userInfoId <=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIn(List<Long> values) {
            addCriterion("userInfoId in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotIn(List<Long> values) {
            addCriterion("userInfoId not in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdBetween(Long value1, Long value2) {
            addCriterion("userInfoId between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotBetween(Long value1, Long value2) {
            addCriterion("userInfoId not between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andMemberLevelIsNull() {
            addCriterion("memberLevel is null");
            return (Criteria) this;
        }

        public Criteria andMemberLevelIsNotNull() {
            addCriterion("memberLevel is not null");
            return (Criteria) this;
        }

        public Criteria andMemberLevelEqualTo(Integer value) {
            addCriterion("memberLevel =", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelNotEqualTo(Integer value) {
            addCriterion("memberLevel <>", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelGreaterThan(Integer value) {
            addCriterion("memberLevel >", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("memberLevel >=", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelLessThan(Integer value) {
            addCriterion("memberLevel <", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelLessThanOrEqualTo(Integer value) {
            addCriterion("memberLevel <=", value, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelIn(List<Integer> values) {
            addCriterion("memberLevel in", values, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelNotIn(List<Integer> values) {
            addCriterion("memberLevel not in", values, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelBetween(Integer value1, Integer value2) {
            addCriterion("memberLevel between", value1, value2, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("memberLevel not between", value1, value2, "memberLevel");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralIsNull() {
            addCriterion("memberIntegral is null");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralIsNotNull() {
            addCriterion("memberIntegral is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralEqualTo(Integer value) {
            addCriterion("memberIntegral =", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralNotEqualTo(Integer value) {
            addCriterion("memberIntegral <>", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralGreaterThan(Integer value) {
            addCriterion("memberIntegral >", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("memberIntegral >=", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralLessThan(Integer value) {
            addCriterion("memberIntegral <", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralLessThanOrEqualTo(Integer value) {
            addCriterion("memberIntegral <=", value, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralIn(List<Integer> values) {
            addCriterion("memberIntegral in", values, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralNotIn(List<Integer> values) {
            addCriterion("memberIntegral not in", values, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralBetween(Integer value1, Integer value2) {
            addCriterion("memberIntegral between", value1, value2, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberIntegralNotBetween(Integer value1, Integer value2) {
            addCriterion("memberIntegral not between", value1, value2, "memberIntegral");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateIsNull() {
            addCriterion("memberEndDate is null");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateIsNotNull() {
            addCriterion("memberEndDate is not null");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateEqualTo(Date value) {
            addCriterion("memberEndDate =", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateNotEqualTo(Date value) {
            addCriterion("memberEndDate <>", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateGreaterThan(Date value) {
            addCriterion("memberEndDate >", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateGreaterThanOrEqualTo(Date value) {
            addCriterion("memberEndDate >=", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateLessThan(Date value) {
            addCriterion("memberEndDate <", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateLessThanOrEqualTo(Date value) {
            addCriterion("memberEndDate <=", value, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateIn(List<Date> values) {
            addCriterion("memberEndDate in", values, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateNotIn(List<Date> values) {
            addCriterion("memberEndDate not in", values, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateBetween(Date value1, Date value2) {
            addCriterion("memberEndDate between", value1, value2, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andMemberEndDateNotBetween(Date value1, Date value2) {
            addCriterion("memberEndDate not between", value1, value2, "memberEndDate");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNull() {
            addCriterion("attr1 is null");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNotNull() {
            addCriterion("attr1 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr1EqualTo(String value) {
            addCriterion("attr1 =", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotEqualTo(String value) {
            addCriterion("attr1 <>", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThan(String value) {
            addCriterion("attr1 >", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThanOrEqualTo(String value) {
            addCriterion("attr1 >=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThan(String value) {
            addCriterion("attr1 <", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThanOrEqualTo(String value) {
            addCriterion("attr1 <=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Like(String value) {
            addCriterion("attr1 like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotLike(String value) {
            addCriterion("attr1 not like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1In(List<String> values) {
            addCriterion("attr1 in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotIn(List<String> values) {
            addCriterion("attr1 not in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Between(String value1, String value2) {
            addCriterion("attr1 between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotBetween(String value1, String value2) {
            addCriterion("attr1 not between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNull() {
            addCriterion("attr2 is null");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNotNull() {
            addCriterion("attr2 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr2EqualTo(String value) {
            addCriterion("attr2 =", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotEqualTo(String value) {
            addCriterion("attr2 <>", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThan(String value) {
            addCriterion("attr2 >", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThanOrEqualTo(String value) {
            addCriterion("attr2 >=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThan(String value) {
            addCriterion("attr2 <", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThanOrEqualTo(String value) {
            addCriterion("attr2 <=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Like(String value) {
            addCriterion("attr2 like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotLike(String value) {
            addCriterion("attr2 not like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2In(List<String> values) {
            addCriterion("attr2 in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotIn(List<String> values) {
            addCriterion("attr2 not in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Between(String value1, String value2) {
            addCriterion("attr2 between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotBetween(String value1, String value2) {
            addCriterion("attr2 not between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNull() {
            addCriterion("attr3 is null");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNotNull() {
            addCriterion("attr3 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr3EqualTo(String value) {
            addCriterion("attr3 =", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotEqualTo(String value) {
            addCriterion("attr3 <>", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThan(String value) {
            addCriterion("attr3 >", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThanOrEqualTo(String value) {
            addCriterion("attr3 >=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThan(String value) {
            addCriterion("attr3 <", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThanOrEqualTo(String value) {
            addCriterion("attr3 <=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Like(String value) {
            addCriterion("attr3 like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotLike(String value) {
            addCriterion("attr3 not like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3In(List<String> values) {
            addCriterion("attr3 in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotIn(List<String> values) {
            addCriterion("attr3 not in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Between(String value1, String value2) {
            addCriterion("attr3 between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotBetween(String value1, String value2) {
            addCriterion("attr3 not between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andMemberStateIsNull() {
            addCriterion("memberState is null");
            return (Criteria) this;
        }

        public Criteria andMemberStateIsNotNull() {
            addCriterion("memberState is not null");
            return (Criteria) this;
        }

        public Criteria andMemberStateEqualTo(Integer value) {
            addCriterion("memberState =", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateNotEqualTo(Integer value) {
            addCriterion("memberState <>", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateGreaterThan(Integer value) {
            addCriterion("memberState >", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("memberState >=", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateLessThan(Integer value) {
            addCriterion("memberState <", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateLessThanOrEqualTo(Integer value) {
            addCriterion("memberState <=", value, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateIn(List<Integer> values) {
            addCriterion("memberState in", values, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateNotIn(List<Integer> values) {
            addCriterion("memberState not in", values, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateBetween(Integer value1, Integer value2) {
            addCriterion("memberState between", value1, value2, "memberState");
            return (Criteria) this;
        }

        public Criteria andMemberStateNotBetween(Integer value1, Integer value2) {
            addCriterion("memberState not between", value1, value2, "memberState");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}